# -*- coding: utf-8 -*-
# @Time    : 2020/10/18 16:01
# @Author  : liupengfei
# @File    : urls.py
from django.urls import path, include
from rest_framework_jwt.views import refresh_jwt_token, verify_jwt_token

from .views import *

urlpatterns = [
    path('token/obtain/', MemberLoginView.as_view()),  # 验证码注册登录
    path('user_info/', UserInfoView.as_view()),  # 获取用户信息
    path('wechat/code2session/', WeChatCode2sessionView.as_view()),  # code换取sessionKey和openid进行绑定
    path('wechat/bind_phonenumber/', WeChatBindPhoneNumberView.as_view()),  # 获取手机号
    path('wechat/update_userinfo/', WeChatUpdateUserInfoView.as_view()),  # 绑定用户信息
    path('upload_image/', UploadImageview.as_view()),  # 上传图片

    path('activity/', include('apps.member.activity.urls')),
    path('store/', include('apps.member.stores.urls')),
    path('comment/', include('apps.member.comment.urls')),
    path('system/', include('apps.member.system.urls')),
]
